package com.example.base.net

/**
 * 常量池
 */
class Cons {
    companion object{
        const val BASE_URL = "http://10.161.9.80:2209/"
        const val LOGIN_URL = "/api/user/login"
        const val UPDATE_PWD_URL = "/api/user/modifyPwd"//修改密码

        const val PARK_TYPE_URL = "/api/parking-spaces/type/{spaceType}"//根据车位类型查询
        const val PARK_ADD_URL = "/api/parking-spaces"//新增车位
        const val DICT_URL = "api/dictionaries?page=0&size=10"//字典
        const val PARK_DETAIL_URL = "/api/parking-spaces/{id}"//详情
        const val PARK_UPDATE_URL = "/api/parking-spaces/{id}"//修改
        const val PARK_DELETE_URL= "/api/parking-spaces/{id}"//删除
        const val PARK_AREA_URL = "/api/parking-spaces/area/{areaId}"//根据区域查询
        const val PARK_CARNO_URL = "/api/parking-spaces/license/{licensePlate}"//根据车牌号查询
        const val PARK_STATUS_URL = "/api/parking-spaces/status/{spaceStatus}"//根据车位状态查询

        //维修
        const val REPAIR_URL = "/api/repair-orders"
        const val UPLOAD_URL = "/api/file/upload"//文件上传
        const val REPAIR_ADD_URL = "/api/repair-orders"//新增维修
        const val REPAIR_UPDATE_URL = "/api/repair-orders/{id}"//修改维修

        //预约
        const val VISIT_URL = "/api/visit-appointments"
        const val VISIT_ADD_URL ="/api/visit-appointments"
        const val VISIT_STATUS_URL = "/api/visit-appointments/status/{status}"
        const val VISIT_NAME_URL = "/api/visit-appointments/search/name"
        const val VISIT_PURPOSE_URL = "/api/visit-appointments/search/purpose"


        //新闻相关
        const val NEWS_URL= "/api/news"
        const val NEWS_CANCEL = "/api/news/revoke/{id}"//撤销发布


        const val SIGN_URL = "/api/attendances"//签到
        const val SING_RECORD_URL = "/api/attendances/user/{userId}"

        const val UPLOAD_HEAD_URL = "/api/user/uploadImage"//上传头像


        const val SP_TOKEN = "token"

        const val BASE_SHOP_URL = "http://10.161.9.80:7456/"
        const val CATEGORY_URL = "/api/front/category"
        const val PRODUCT_URL = "/api/front/products"
        const val CART_URL= "/api/front/cart/list"
        const val CART_UPDATE_URL = "/api/front/cart/num"
        const val CART_DELETE_URL = "/api/front/cart/delete"
        const val ORDER_CREATE_URL = "/api/front/order/create"//创建订单


        //视频相关
        const val BASE_VIDEO_URL = "http://10.161.9.80:7015/"

    }
}